﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PersonnelSystemManagement.系统管理
{
    /// <summary>
    /// 权限表
    /// </summary>
    public class Permissions
    {
        /// <summary>
        /// 主键 ID
        /// </summary>
        [Key]
        public int id { get; set; }

        /// <summary>
        /// 权限显示名称
        /// </summary>
        [StringLength(100, ErrorMessage = "权限显示名称长度不能超过 100 个字符")]
        public string? PermissionName { get; set; }

        /// <summary>
        /// 权限类型：1-菜单权限 2-按钮权限 3-接口权限
        /// </summary>
        public int? PermissionType { get; set; }
    }
}
